package com.ykh.mybbsdemo.dao.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Video对象", description="")
public class VideoDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "视频id")
    @TableId(value = "video_id", type = IdType.AUTO)
    private Integer videoId;

    @ApiModelProperty(value = "视频标题")
    private String videoTitle;

    @ApiModelProperty(value = "视频文件")
    private MultipartFile videoFile;

    @ApiModelProperty(value = "视频封面文件")
    private String coverUrl;

    @ApiModelProperty(value = "视频简介")
    @TableField("summary")
    private String summary;


    @ApiModelProperty(value = "作者账号")
    @TableField("user_account")
    private String userAccount;

    @ApiModelProperty(value = "视频分类id")
    @TableField("category_id")
    private Long categoryId;

}